<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改来源基本')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-baseInfo-edit" th:object="${sourceBaseInfo}">
            <input name="id" th:field="*{id}" type="hidden">
            <input name="channelCode" th:field="*{channelCode}" type="hidden">

            <div class="form-group">
                <label class="col-sm-3 control-label">factoryType：</label>
                <div class="col-sm-8">
                    <input name="factoryType" th:field="*{factoryType}" class="form-control" type="text">
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label">appKey：</label>
                <div class="col-sm-8">
                    <input name="appKey" th:field="*{appKey}" class="form-control" type="text">
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label">appSecret：</label>
                <div class="col-sm-8">
                    <input name="appSecret" th:field="*{appSecret}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">pubKey：</label>
                <div class="col-sm-8">
                    <textarea name="pubKey" class="form-control">[[*{pubKey}]]</textarea>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">priKey：</label>
                <div class="col-sm-8">
                    <textarea name="priKey" class="form-control">[[*{priKey}]]</textarea>
                </div>
            </div>

        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "source/baseInfo";
        $("#form-baseInfo-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-baseInfo-edit').serialize());
            }
        }
    </script>
</body>
</html>